<template>
	<view>
		<stop isBack>
			<view slot="content">我的信息</view>
		</stop>
		<view v-if="isbool(user)">
			<view class="flrc bcf mart3 pad2">
				<view class="flex1 pad2">账号：</view>
				<view>{{user.account}}</view>
			</view>
			<view class="flrc bcf mart3 pad2">
				<view class="flex1 pad2">姓名：</view>
				<view>{{user.name}}</view>
			</view>
			<view class="flrc bcf mart3 pad2">
				<view class="flex1 pad2">手机号：</view>
				<view>{{user.phone}}</view>
			</view>
		</view>
		<view class="pad3 mart10">
			<view class="cu-btn bg-green tac w100 lg" @tap="goto('/pages/user/phoneLogin')">
				切换账号
				<ripple></ripple>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				user:''
			}
		},
		methods: {
			
		},
		onLoad() {
			this.$api.get('/v1/api/get_user_info',{},res=>{
				this.log(res)
				this.user = res.d
			})
		}
	}
</script>

<style>

</style>
